<?php echo '';exit;?>
<!--{if $space[uid]}-->

<!--{eval $member_count = get_member_count($space[uid]);}-->
<!--{eval $member_profile = get_member_profile($space[uid]);}-->

<!--{eval loaducenter(); $uc_avatarflash = uc_avatar($_G['uid'], 'virtual', 0);}-->
<!--{subtemplate common/inmobile}-->
<style id="diy_style">$space[spacecss]</style>

<div id="klp_cfgmain" class="klp_cfgmainwrap" >

	<div class="klp_confighdbox text-center">
		 装扮个人空间
	</div>

	<div class="klp_configcontent">
		<div class="klp_cfghomebox">

			<div class="left config-bg-wrap text-center">
				<div style="height: 200px;margin-bottom: 6px;border: 1px solid #eee;border-radius: 6px;">
				<script type="text/javascript">document.write(AC_FL_RunContent('<!--{echo implode("','", $uc_avatarflash);}-->'));</script>
				</div>
				<br/>
				<div class="cl">
					{lang setting_my_new_avatar}
				</div>
				<p class="klp_arrowhdstyle">
					 {lang setting_my_new_avatar_message}
				</p>
			</div>

			<div class="right klp_usercovercon">
				<div class="klp_cfgcbox" id="uploadSinceWriting">

					<div id="controlpanel" class="cl">
						<div id="controlheader" class="hide">
							<ul id="controlnav">
								<li id="navdiy"></li>
							</ul>
						</div>
						<div id="controlcontent" class="cl">
							<ul id="contentstart" class="content">
							  <li id="ct"><a href="javascript:;" onclick="spaceDiy.getdiy('diy', 'topicid', '$topic[topicid]');return false;">点击自定义空间样式</a></li>
							</ul>
						</div>
					</div>

					<form method="post" autocomplete="off" name="diyform" action="home.php?mod=spacecp&ac=index">
						<input type="hidden" name="spacecss" value="" />
						<input type="hidden" name="style" value="$space[theme]" />
						<input type="hidden" name="layoutdata" value="" />
						<input type="hidden" name="currentlayout" value="{$userdiy['currentlayout']}" />
						<input type="hidden" name="formhash" value="{FORMHASH}" />
						<input type="hidden" name="diysubmit" value="true"/>
					</form>

					<div id="diypage" class="area hide">
						<div id="frame1" class="frame cl" noedit="1"></div>
					</div>

					<link rel="stylesheet" href="template/huyou_zisy/klp_img/home/diy.css">
					<script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
					<script type="text/javascript" src="{$_G[setting][jspath]}space_diy.js?{VERHASH}"></script>
					<br/>

					<div class="text-center">
						个人主页封面大图
						<p class="klp_arrowhdstyle">尺寸不小于2560x340，JPG / GIF / PNG，
							<br> 图像最好是用ps进行处理好保存位web格式,1m以内,如果太大的图片会减慢加载速度!
						</p>
					</div>

				</div>
			</div>
		</div>
	</div>


	<div class="docs-buttons klp_cfgftbox text-center">
		<input id="navsave" onclick="javascript:spaceDiy.save();return false;" type="submit" class="klp_btndefaultmn klp_cfgbtn" value="保存设置">
		<input type="button" name="" class="klp_btndefaultsec klp_cfgbtn" onclick="cancelConfig()" value="取消保存">
		<input id="navcancel" onclick="spaceDiy.cancel();return false;" type="hidden" class="klp_btndefaultsec klp_cfgbtn" value="">
		<span id="button_redo"><a href="javascript:;" onclick="spaceDiy.redo();return false;" title="{lang diy_redo}" onfocus="this.blur();"></a></span>
		<span id="button_undo"><a href="javascript:;" onclick="spaceDiy.undo();return false;" title="{lang diy_revocation}" onfocus="this.blur();"></a></span>
	</div>

</div>

<div id="ct" class="klp_userhomebg">
	<div class="klp_bgimg"></div>
	<div class="klp_datawraper">
		<div class="klp_datawbox">
			<p class="klp_datalistbox left">
				 作品 <a href="home.php?mod=follow&uid=$space[uid]" title="作品" class="klp_datanum">$member_count[threads]</a>
			</p>
			<p class="klp_datalistbox left">
				 金钱 <a href="home.php?mod=spacecp&ac=credit" title="金钱" class="klp_datanum">$member_count[extcredits2]</a>
			</p>
			<p class="klp_datalistbox right">
				 关注 <a href="home.php?mod=follow&do=follower&uid=$space[uid]" title="关注" class="klp_datanum">$member_count[follower]</a>
			</p>
			<p class="klp_datalistbox right">
				 粉丝 <a href="home.php?mod=follow&do=following&uid=$space[uid]" title=" 粉丝" class="klp_datanum">$member_count[following]</a>
			</p>
		</div>
	</div>
	<!--{if !klp_BeMobile() || $_G[uid] == $space[uid]}-->
	<div class="klp_sharereportcon">
		
		<ul class="klp_sharereportitem hide">
			<!--{if $_G[uid] == $space[uid]}-->
			<li class="decorate">装饰主页</li>
			<!--{/if}-->
			<li id="share" class="disnone">分享</li>
		</ul>
		
	</div>
	<!--{/if}-->
</div>

<div class="klp_homeinfowrap">
	<div class="klp_homeinfoboxx">
		<div class="klp_infohdbox">
			<img src="{echo avatar($space[uid],'big',1);}" width="120" height="120">
		</div>
		<div class="klp_infoconwrap text-center">
			<p class="klp_unickname">{$space[username]}</p>
			<p class="klp_ubg">
				<!--{if $member_profile[residecity]}-->{$member_profile[residecity]}<!--{else}-->未设置<!--{/if}-->
				<!--{if $member_profile[occupation]}-->&nbsp;|&nbsp;{$member_profile[occupation]}<!--{/if}-->
			</p>
			<p class="klp_usignature">
				<!--{if $member_profile[bio]}-->$member_profile[bio]<!--{else}-->这家伙很懒，什么都没有留下！<!--{/if}-->
			</p>
			<div class="klp_followcon klp_btnarea">
				<!--{if $_G[uid] == $space[uid]}-->
				<a href="home.php?mod=spacecp&ac=avatar" title="修改头像">
					<input type="button" name="" value="修改头像" class="klp_btndefaultmn notfollow klp_btnnow attention">
				</a>
				<a href="home.php?mod=spacecp" title="编辑资料">
					<input type="button" name="" value="编辑资料" class="klp_btndefaultsec klp_btnnow klp_prletter">
				</a>
				<!--{else}-->
				<!--{if !ckfollow($space['uid'])}-->
				<a id="followmod" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$space[uid]" title="关注">
					<input type="button" name="" value="关注" class="klp_btndefaultmn notfollow klp_btnnow attention">
				</a>
				<!--{else}-->
				<a id="followmod" class="_btn _btn--gray _btn--sm js-cancle-follow" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$space[uid]" title="已关注">
					<input type="button" name="" value="已关注" class="klp_btnnow attention klp_btndefaultsec following">
				</a>
				<!--{/if}-->
				<a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$space[uid]&touid=$space[uid]&pmid=0&daterange=2" id="a_sendpm_$space[uid]" onclick="showWindow('showMsgBox', this.href, 'get', 0)" title="私信">
					<input type="button" name="" value="私信" class="klp_btndefaultsec klp_btnnow klp_prletter">
				</a>
				
			
				<!--{/if}-->
			</div>
		</div>
	</div>
</div>


<!--{if helper_access::check_module('follow')}-->
<script type="text/javascript">
function succeedhandle_followmod(url, msg, values) {
	var fObj = $('followmod');
	if(values['type'] == 'add') {
		fObj.innerHTML = '{lang follow_del}';
		fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
	} else if(values['type'] == 'del') {
		fObj.innerHTML = '{lang follow_add}TA';
		fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid'];
	}
}
</script>
<!--{/if}-->


<div class="share-more hide" id="klp_popshare">
	<div class="jiathis_style_32x32 share-to-box">
		<div class="bds-box">
			<div class="weixin-box">
				<a class="work-weixin" title="分享到微信" z-st="share_wechat">
				<span class="jtico">微信扫码</span>
				</a>
				<div class="weixin-code-box">
					<i class="active-wexin-code" id="wechat-qr-code" title=""></i>
				</div>
			</div>
			<div class="bds-r-icon">
				<a class="jiathis_button_tsina work-sina" title="分享到新浪微博" z-st="share_tsina">新浪微博</a>
				<a class="jiathis_button_cqq work-qq" title="分享到QQ好友" z-st="share_cqq">QQ好友</a>
				<a class="jiathis_button_qzone work-qzone" title="分享到QQ空间"  z-st="share_qzone">QQ空间</a>
			</div>
		</div>
	</div>
	<i class="klp_popclose"></i>
</div>

<script type="text/javascript" src="template/huyou_zisy/klp_img/js/qrcode.min.js"></script>

<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
<script>
    var jiathis_config={
        title:'{$space[username]}的主页-({$_G['setting']['bbname']})',
        pic:'{echo avatar($space[uid],'big',1);}',
        data_track_clickback:true,
        siteNum:5,
        sm:'cqq,tsina,qzone,weixin,tqq',
        summary:'{$_G['siteurl']}home.php?mod=space&uid=$space[uid]',
        shortUrl:true,
        hideMore:false
    }
    var qrcode = new QRCode(document.getElementById("wechat-qr-code"), {
        width: 77,
        height: 77
    });
    qrcode.makeCode(window.location.href);
</script>

<div class="klp_subnvconwrap" id="klp_tabuser">
	<div class="klp_subnvwrap">
		<div class="top-hull">
			<div class="klp_subnvbox">
				<div class="klp_tabnavcon">
					<!--{hook/space_menu_extra}-->
					<ul class="klp_subnvcon text-center">
						<li{if CURMODULE == 'follow' && $do =='view'} class="current klp_homecat"{/if}><a href="home.php?mod=follow&uid=$space[uid]&do=view&from=space">首页</a></li>
						<!--{if $do =='following' || $do =='follower'}--><!--{/if}-->
						<li{if CURMODULE == 'follow' && $do =='following'} class="current klp_homecat"{/if}><a href="home.php?mod=follow&do=following&uid=$space[uid]">收听</a></li>
						<li{if CURMODULE == 'follow' && $do =='follower'} class="current klp_homecat"{/if}><a href="home.php?mod=follow&do=follower&uid=$space[uid]">听众</a></li>
						<li{if $do=='thread'} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space">帖子</a></li>
						<!--{if helper_access::check_module('blog')}-->
						<li{if $do=='blog'} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=blog&view=me&from=space">日志</a></li>
						<!--{/if}-->
						<!--{if helper_access::check_module('album')}-->
						<li{if $do=='album'} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=album&view=me&from=space">相册</a></li>
						<!--{/if}-->
						<!--{if helper_access::check_module('doing')}-->
						<li{if $do=='doing'} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=doing&view=me&from=space">记录</a></li>
						<!--{/if}-->
						<!--{if helper_access::check_module('home')}-->
						<li{if $do=='home'} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=home&view=me&from=space">{lang feed}</a></li>
						<!--{/if}-->
						<!--{if helper_access::check_module('share')}-->
						<li{if $do=='share'} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=share&view=me&from=space">分享</a></li>
						<!--{/if}-->
						<!--{if helper_access::check_module('wall')}-->
						<li{if $do==wall} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=wall&from=space">留言</a></li>
						<!--{/if}-->
						<li{if $do==profile} class="current klp_homecat"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=profile&from=space">资料</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>

<!--{/if}-->